From: Jyrki Gadinger Date: Mon, 3 Mar 2025 16:53:56 +0000 (+0100) Subject: gui: do not allow MainWindow to be resized X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~10^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=e879eaddc0c9a9dbca9d899a5ae378e3af0ec188;p=nextcloud-desktop.git gui: do not allow MainWindow to be resized previously macOS let you resize the activity window, resulting in strange visual artifacts... Signed-off-by: Jyrki Gadinger --- diff --git a/src/gui/tray/MainWindow.qml b/src/gui/tray/MainWindow.qml index cf13b90be..a30f4fc93 100644 --- a/src/gui/tray/MainWindow.qml +++ b/src/gui/tray/MainWindow.qml @@ -43,7 +43,16 @@ ApplicationWindow { readonly property int maxMenuHeight: Style.trayWindowHeight - Style.trayWindowHeaderHeight - 2 * Style.trayWindowBorderWidth - Component.onCompleted: Systray.forceWindowInit(trayWindow) + Component.onCompleted: { + Systray.forceWindowInit(trayWindow) + if (Systray.useNormalWindow) { + return; + } + + // do not allow this window to be resized when it's frameless + this.minimumWidth = this.maximumWidth = this.width + this.minimumHeight = this.maximumHeight = this.height + } // Close tray window when focus is lost (e.g. click somewhere else on the screen) onActiveChanged: {